#encoding:utf-8
from pylab import *
from RelationshipGeneration import *

X=np.random.normal(0,1,40)#minSupport=0.3 minConf=0.7时能产生400条规则
Y=np.random.normal(0,1,40)
p=zip(X,Y)
scatter(X,Y)

dic={}
for i in range(1,41):
    dic[i]=p[i-1]

for i in dic.keys():
    if j in matrix.keys():
        a=[]
        b=[]
        for j in matrix[i]:
            a.append(dic[i][0])
            a.append(dic[j][0])
            b.append(dic[i][1])
            b.append(dic[j][1])
        plot(a,b)
show()

    